import React from 'react';
import './App.css';
import { BrowserRouter as Router, Route, Redirect } from 'react-router-dom';
import Citylist from './citylist';
import Map from './map';
import Home from './home';

function App() {
  return (
    <Router>
      <div className="App">
        <Route exact path="/" render={() => <Redirect to="/home" />} />
        <Route path="/citylist" component={Citylist} />
        <Route path="/home" component={Home} />
        <Route path="/map" component={Map} />
      </div>
    </Router>
  );
}

export default App;
